package cn.itsource.org.service;

import cn.itsource.basic.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartMentQuery;

import java.util.List;

public interface DepartmentService {
    //查询一条
    public Department queryById(Long id);
    //添加
    public void add(Department department);
    //删除
    public void delete(Long id);
    //修改
    public void update(Department department);
    //查询所有
    List<Department> queryAll();

    public PageList<Department> pageLoad(DepartMentQuery query);

}
